package net.bolue.console.data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import net.bolue.sysmng.tblbean.RepField;
import net.bolue.sysmng.tblbean.RepFunc;
import net.bolue.sysmng.tblbean.RepRes;
import net.bolue.web.entry.FormDataOption;
import net.bolue.web.entry.FormElemTag;

/**
 * 报表信息
 * @author Administrator
 *
 */
public class RepInfo extends DataBean{
	
	/**
	 * 子系统标识
	 */
	private String subSys;
	
	/**
	 * 报表标识
	 */
	private Integer repId;

	/**
	 * 报表资源
	 */
	private RepRes repRes;
	
	/**
	 * 列信息
	 */
	private List<RepField> fieldList;
	
	/**
	 * 查询条件
	 */
	private List<FormElemTag> cndList;
	
	/**
	 * 字典
	 */
	private Map<String,List<FormDataOption>> dicsMap;
	
	/**
	 * 功能按钮
	 */
	private List<RepFunc> funcList;
	
	public RepInfo(){}
	
	public RepInfo(String subSys,Integer repId){
		this.subSys = subSys;
		this.repId = repId;
	}
	
	public Map<String,Object> toMap(){
		Map<String,Object> map = new HashMap<String,Object>();
		map.put("repRes", this.repRes);
		map.put("fields", this.fieldList);
		map.put("cnds", this.cndList);
		map.put("dicsMap", this.dicsMap);
		map.put("funcs", this.funcList);
		return map;
	}
	
	public String getSubSys() {
		return subSys;
	}

	public void setSubSys(String subSys) {
		this.subSys = subSys;
	}

	public Integer getRepId() {
		return repId;
	}

	public void setRepId(Integer repId) {
		this.repId = repId;
	}

	public RepRes getRepRes() {
		return repRes;
	}

	public void setRepRes(RepRes repRes) {
		this.repRes = repRes;
	}

	public List<RepField> getFieldList() {
		return fieldList;
	}

	public void setFieldList(List<RepField> fieldList) {
		this.fieldList = fieldList;
	}

	public List<FormElemTag> getCndList() {
		return cndList;
	}

	public void setCndList(List<FormElemTag> cndList) {
		this.cndList = cndList;
	}

	public Map<String, List<FormDataOption>> getDicsMap() {
		return dicsMap;
	}

	public void setDicsMap(Map<String, List<FormDataOption>> dicsMap) {
		this.dicsMap = dicsMap;
	}

	public List<RepFunc> getFuncList() {
		return funcList;
	}

	public void setFuncList(List<RepFunc> funcList) {
		this.funcList = funcList;
	}
	
}
